<template>
	<view class="content">
		<view class="content_line">
			<view class="content_line_first">
				<view class="content_lt_view"></view>
				<view class="content_rt_view"></view>
			</view>

			

				

			<view class="" style="height: 100%;" >
				<view class="" style="width: 100%; height: 300rpx; display: flex; justify-content: space-around; align-items: center;">
					<text style="color:#d45151; font-weight: 600; letter-spacing: 10rpx;">商务合作请加微信</text>
					<image @click="yulan333" src="https://sprtcar.oss-cn-chengdu.aliyuncs.com/suan/erweima.jpg" mode="aspectFill" style="width: 250rpx; height: 250rpx; border-radius: 10rpx;" ></image>
				</view>
				<view  @click="yulan()" class="" style="width: 600rpx; height: 90rpx; border-radius: 10rpx; background-color: #d45151; color: #FFFFFF; display: flex; justify-content: center; align-items: center; margin: 0 auto; margin-top: 30rpx ;" >
					生成海报并分享
				</view>
			</view>

			<view class="content_line_last">
				<view class="content_lb_view"></view>
				<view class="content_rb_view"></view>
			</view>
		</view>
	</view>
</template>

<script>
import helper from '../common/helper.js';
export default {
	data() {
		return {
			ifopv: 0,
		};
	},
	onShow() {
		console.log(helper.ifopv);
		this.ifopv = helper.ifopv;
		console.log(this.ifopv);
	},
	methods: {
		async yulan333(){
			 uni.previewImage({
			 	urls:['https://sprtcar.oss-cn-chengdu.aliyuncs.com/suan/erweima.jpg'],
			 	longPressActions: {
			 		itemList: ['发送给朋友', '保存图片', '收藏'],
			 		success: function(data) {
			 			console.log('选中了第' + (data.tapIndex + 1) + '个按钮,第' + (data.index + 1) + '张图片');
			 		},
			 		fail: function(err) {
			 			console.log(err.errMsg);
			 		}
			 	}
			 });
		},
		yulan(){
			console.log('111 :>> ', 111);
			uni.navigateTo({
				url: 'poster/goodsPoster',
			});
			// uni.previewImage({
			// 	urls:[urls],
			// 	longPressActions: {
			// 		itemList: ['发送给朋友', '保存图片', '收藏'],
			// 		success: function(data) {
			// 			console.log('选中了第' + (data.tapIndex + 1) + '个按钮,第' + (data.index + 1) + '张图片');
			// 		},
			// 		fail: function(err) {
			// 			console.log(err.errMsg);
			// 		}
			// 	}
			// });
		}
	},
};
</script>

<style lang="scss" scoped>
.content {
	width: 100vw;
	height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	background: #e6dcc8;
}

.content_line {
	width: 690rpx;
	height: 95%;
	border-style: solid;
	border-width: 7rpx;
	border-color: #d45151;
	box-sizing: border-box;
	display: flex;
	justify-content: space-between;
	flex-direction: column;
}

.content_line_first {
	display: flex;
	justify-content: space-between;
}

.content_line_last {
	display: flex;
	justify-content: space-between;
}

.content_lt_view {
	width: 17rpx;
	height: 17rpx;
	background: #d45151;
}

.content_rt_view {
	width: 17rpx;
	height: 17rpx;
	background: #d45151;
}

.content_lb_view {
	width: 17rpx;
	height: 17rpx;
	background: #d45151;
	align-self: flex-end;
}

.content_rb_view {
	width: 17rpx;
	height: 17rpx;
	background: #d45151;
	align-self: flex-end;
}

.context_view {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
}
</style>
